package com.atguigu.common.constant;

/**
 * @Author: biubiu0002
 * @Date: 2022-02-05 19:59
 **/
public class WareConst {
    public enum PurchaseEnum{
        CREATED(0,"新建"),
        DISTRIBUTED(1,"已分配"),
        RECEIVED(2,"已领取"),
        FINISHED(3,"已完成"),
        EXCEPTION(4,"有异常");

        private int code;
        private String msg;

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        PurchaseEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }

    public enum PurchaseDetailEnum{
        CREATED(0,"新建"),
        DISTRIBUTED(1,"已分配"),
        PURCHASING(2,"正在采购"),
        FINISHED(3,"已完成"),
        FAILED(4,"采购失败");

        private int code;
        private String msg;

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        PurchaseDetailEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }
}
